package net.bluemind.ysnp.bmcore;

import net.bluemind.ysnp.ICredentialValidator;
import net.bluemind.ysnp.ICredentialValidatorFactory;
import net.bluemind.ysnp.YSNPConfiguration;
import net.bluemind.ysnp.bmcore.impl.CoreCredentialValidator;


public class CoreCredentialValidatorFactory implements
		ICredentialValidatorFactory {

	private YSNPConfiguration conf;

	public CoreCredentialValidatorFactory() {
	}

	@Override
	public ICredentialValidator getValidator() {
		return new CoreCredentialValidator(conf);
	}

	@Override
	public String getName() {
		return "bm-core";
	}

	@Override
	public int getPriority() {
		return 0;
	}

	@Override
	public void init(YSNPConfiguration conf) {
		this.conf = conf;
	}

}
